Skip to content

Top up the lifecycle reserve on FilecoinPayV2 - #678

Open
Filip-L wants to merge 1 commit into
feat/filecoin-pay-v2from
filecoin-pay-v2-top-up
Open

Filip-L wants to merge 1 commit into
feat/filecoin-pay-v2from
filecoin-pay-v2-top-up

Conversation

@Filip-L

@Filip-L Filip-L commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

Enable topUpLifecycleReserve for data sets using FilecoinPayV2. Top-ups lock funds from the payer’s existing balance on the PDP rail, using the token specified in storage terms.

Emit LifecycleReserveToppedUp for both payment versions.

Add tests covering V2 top-ups, insufficient balance, amount truncation, and native FIL.

@Filip-L
Filip-L requested a review from CodeWarriorr November 26, 2026 14:51
@FilOzzy FilOzzy added this to FOC Nov 26, 2026
@github-project-automation github-project-automation Bot moved this to 📌 Triage in FOC Nov 26, 2026
@FilOzzy FilOzzy moved this from 📌 Triage to 🔎 Awaiting review in FOC Nov 26, 2026
@CodeWarriorr

Copy link
Copy Markdown
Collaborator

Hey @Filip-L, after #677 the v2 reserve is just the terminate fee and other fees are taken as they come, so there's nothing to top up on v2. I'd drop the v2 path and make topUpLifecycleReserve revert on v2 with UnsupportedPayVersion

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🔎 Awaiting review

Development

Successfully merging this pull request may close these issues.

2 participants